While the official version of Java 8 has been released for more than two years, the current flagship version of Java Enterprise Applications is Java 6 and Java 7, and even worse, some of the company's early projects have to be run under Java 5, and I want to experience the new features of Java 8 in addition to working. So I need to install JDK 1.5,JDK 1.6, JDK 1.
Install jdk in Linux -- Jdk installation and Linux jdk Installation
One of the essential skills for Java software engineers: Install JDK in Linux
For programmers who choose to develop applications in Linux, installing Jdk in Linux is one of the essential technologies. Here,
Oracle Web download JDK, need to click Accept Licence to download, use the following command, directly can download.
wget--no-check-certificate--no-cookies--header "Cookie:oraclelicense=accept-securebackup-cookie" http:// Download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz
When you use the latest JD
Upgrade production environment JDK 6 to JDK 8
Since Oracle does not support JDK 6 and JDK 7, it also needs to use the G1 collector. Therefore, in the production environment, we upgraded the project from JDK 6 to JDK 8, and changed
First, view the installation path of the JDK:
Whereis JavaWhich Java (Java execution path)Echo $JAVA _home
Echo $PATH
Note: If you are in Windows, you can use:
Set Java_home: View JDK Installation pathJava-version: View JDK version
Second, uninstall the old version of the JDK:
1. Determine the version of
How to Use yum to install and uninstall jdk and use yum to uninstall jdk
The installed CentOS comes with OpenJdk and uses the java-version command. The following information is displayed:
Java version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)
It is best to uninstall openjdk first and install the jdk
First, check the installation path of the JDK:Whereis JavaWhich Java (Java execution path)Echo $JAVA _homeEcho $PATHNote: If you are in Windows, you can use:Set Java_home: View JDK Installation pathJava-version: View JDK versionSecond, uninstall the old version of the JDK:1. Determine the version of the JDK:Rpm-qa | grep JDKRpm-qa | grep GCJThe possible results a
OPENJDK implementation of the Java platform as a GPL license (gpl-licensed)The Java interpreter for GCCCompiler: GCJ;Interpreter: gij;First, check the installation path of the JDK:Whereis JavaWhich Java (Java execution path)Echo $JAVA _homeEcho $PATHNote: If you are in Windows, you can use:Set Java_home: View JDK Installation pathJava-version: View JDK versionSecond, uninstall the old version of the
First, check the installation path of the JDK:Whereis JavaWhich Java (Java execution path)Echo $JAVA _homeEcho $PATHNote: If you are in Windows, you can use:Set Java_home: View JDK Installation pathJava-version: View JDK versionSecond, uninstall the old version of the JDK:1. Determine the version of the JDK:Rpm-qa | grep JDKRpm-qa | grep GCJThe possible results a
Install JDK 1.6 (jdk-6u45-linux-x64.bin) under Linux system (x64)
One, check to see if the JDK is installed:
# Rpm-qa | --version
Second, download the installation file:
Http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
Download the corresponding version of the
Author: fbysss
QQ: Wine bar Bar I scattered
Blog:blog.csdn.net/fbysss
Statement: This article by fbysss Original, reprint please indicate the source we all know that the JDK can not be downloaded directly through the wget. Cookies were originally needed, as follows:
First, download
wget--no-check-certificate--no-cookie--header "Cookie:oraclelicense=accept-securebackup-cookie;" http:// download.oracle.com/otn/java/
Recently in the research JDK source code, found that debug can not view the value of the variable in the source code. Since the JDK provided by Sun does not look at the running local variables, it needs to recompile the Rt.jar.The following six steps are a concrete step to compiling the JDK:Step 1:locate the JDK sourceFirst navigate to the
How to uninstall your own JDK and install the desired JDK under Linuxafter installing the Linux system, the system has its own JDK version, because some of the software in the system needs to use this environment. But when we install Eclipse and Tomcat, it's not possible to use this JDK. At this point we need to instal
Install Multiple JDK versions at the same time on Mac, and multiple jdk versions on mac
After JDK 8 GA, We were eager to try out new features such as Java 8 Lambda. However, the main version of Java enterprise-level applications is JDK 6 and JDK 7. Therefore, I need to have
Method 1: Install with the yum command1. View current JDK version: Java–version, or: Rpm-qa | grep JDK2. Remove the current jdk:yum-y remove java-1.6.0-openjdk3. View the available JDK versions in the Yum repository: Yum search jdk4. Install Java version 1.7:Yum Install JAVA-1.7.0-OPENJDKYum Install Java-1.7.0-openjdk-develThe default installation is in the/usr directory.5. Do not configure the Java environ
The substring () Method in JDK 6 and JDK 7, substringjdk
The substring () Method in JDK 6 and JDK 7 By X Wang
Thesubstring(int beginIndex, int endIndex)Method in JDK 6 and JDK 7 are different. Knowing the difference can help
Install JDK on Linux and jdk on linux
Step 1:Download the JDK 1.7 installation package
JDK 1.7: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
During the download process, pay attention to the following two points:
1: Pay attention to the operating system version and 32-bit or 64-bi
Install jdk in centos 6.5 and jdk in centosInstall jdk in linux1. Download the linux jdk version:Jdk-6u1-linux-i5862. Transfer the jdk file to the server/usr/local/jdk [the usr non-internal program and the program outside the comm
Build a java Development Environment in Ubuntu 14.04 -- 1--JDK installation, 14.04 -- 1 -- jdk
Note: The following content is my personal experience. I have been in touch with the ubuntu system since 10.04 and have been in the twinkling of an eye for four years. I have visited various related forums and found that from the beginning to the present, many people on the Forum asked questions about JAVA environ
The JDK can be interpreted as a translation officer, which translates the Java high-level language into binary execution.The JDK compiles the file, and the compiled file name extension is. class.Java can run as long as it can support the JDK, which is the nature of the Java cross-platform.My is Windows XP system, download the JDK8, prompt system does not support,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.